<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<%@ include file="/static/commons/ecside.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>${title}</title>
		<script type="text/javascript" src="${ctx}/static/scripts/check_all.js"></script>
		<script type="text/javascript">
			function changeStyle(obj){
			  	ec_showContent(obj,"700px");
			}
		</script>
	</head>
	<body>
		<c:if test="${fn:length(list) > 0 }">
			<c:set var="v0" value="${list[0].device_type }"></c:set>
		</c:if>
		<ec:table items="list" var="v" title="" width="100%"
			retrieveRowsCallback="process" filterRowsCallback="process"
			maxRowsExported="1000" pageSizeList="15,30,50,all" useAjax="false"
			rowsDisplayed="15" sortable="false" filterable="false"
			resizeColWidth="true" classic="true" minHeight="200"
			excludeParameters="checkAll,ID_,id"
			toolbarContent="extend status|pagejump|navigation|pagesize|refresh"
			action="${ctx}/myInspect/viewList">
			<ec:row style="text-align:center;">
				<ec:column width="30" property="_0" title="序号" value="${GLOBALROWCOUNT}"/>  
				<ec:column property="device_type" title="设备类别">${v.device_type_ }</ec:column>
				<ec:column property="device_name" title="名称">${v.device_name }</ec:column>
				<ec:column property="device_manufactor" title="生产厂家">${v.device_manufactor }</ec:column>
				<!-- 气瓶 -->
				<c:if test="${v0 eq 1 }">
					<ec:column property="device_no" title="出厂编号">${v.device_no }</ec:column>
					<ec:column property="volume_category" title="容积" style="width: 70px;">${v.volume_category_ }</ec:column>
					<ec:column property="manufacture_date" title="出厂日期" style="width: 90px;">${v.manufacture_date }</ec:column>
				</c:if>
				<!-- 空呼 -->
				<c:if test="${v0 eq 2 }">
					<ec:column property="device_model" title="仪器型号">${v.device_model }</ec:column>
					<ec:column property="device_no" title="出厂编号">${v.device_no }</ec:column>
				</c:if>
				<!-- 气检仪 -->
				<c:if test="${v0 eq 3 }">
					<ec:column property="device_model" title="仪器型号">${v.device_model }</ec:column>
					<ec:column property="device_no" title="出厂编号">${v.device_no }</ec:column>
					<ec:column property="gas_type" title="气体种类">${empty v.gas_type ? "/" : v.gas_type_}</ec:column>
				</c:if>
				<ec:column property="issue_desc" title="问题描述">${v.issue_desc }</ec:column>
				<ec:column property="fault_name" title="故障现象" style="width: 110px; white-space: initial;">${v.fault_name }</ec:column>
				<ec:column property="parts_name" title="更换配件" style="width: 110px; white-space: initial;">${v.parts_name }</ec:column>
				<ec:column property="if_cert" title="是否需要<br/>证书" style="width: 70px;">${v.if_cert_ }</ec:column>
				<ec:column property="c" title="维修申请<br/>状态">
					<c:if test="${empty v.log_id }"><span style="color: red">未提交</span></c:if>
					<c:if test="${!empty v.log_id }"><span style="color: green;">已提交</span></c:if>
				</ec:column>
			</ec:row>
		</ec:table>
	</body>
</html>